package com.xu.controller;

import org.springframework.stereotype.Component;

@Component
public class HystrixClientFallback implements UserFeignHystrixClient {
	@Override
	public User findByIdFeign(Long id) {
		User user = new User();
		user.setId(-1L);
		user.setUsername("default username");
		user.setAge(0);
		return user;
	}
}